/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-08-17     admin       the first version
 */
#include "rtthread.h"

#include "sy_zigbee.h"
#include "sy_queue.h"
#include "sy_uart.h"
#include "sy_write_thread.h"

static zigbee_rec_t rec_data;

int zigbee_init()
{

    return 0;
}
int Zigbee_SendData(unsigned char *data,unsigned int size)
{
    rt_device_t zigbee=Get_ZigbeeDev();
    if(zigbee==RT_NULL)
    {
        return -1;
    }
    return write_push(zigbee,data,size);
}
void Zigbee_DataAnalysis(void *data,unsigned int len)
{
    unsigned char *temp=(unsigned char*)data;
    rt_kprintf("Zigbee_DataAnalysis len:%d %s\n",len,temp);
}
zigbee_rec_t *Get_ZigbeeRec()
{
    return &rec_data;
}
